include ../evconn.mk

TARGET = evconnsvrd
SRC = $(wildcard *.c)
OBJS = $(patsubst %.c, %.o, $(SRC))

.PHONY: all clean

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) -o $@ $(CCFLAGS) $^ $(LIBS)	
	@($(MV) $(TARGET) $(EVCONN_BIN))

%.o: %.c
	$(CC) -c $(CCFLAGS) $< -o $@ $(INCLUDE)

clean:
	@(rm -rf $(TARGET) $(OBJS))


